package com.atguigu.gulimall.product.feign;

import com.atguigu.common.To.BoundsTo;
import com.atguigu.common.To.SkuReductionTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface SpuboundsFeign {

    /**
     * 保存
     */
    @RequestMapping("coupon/spubounds/save")
    //@RequiresPermissions("coupon:spubounds:save")
    public R save(@RequestBody BoundsTo boundsTo);

    @RequestMapping("coupon/skufullreduction/saveInfo")
    void saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
